<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<h1>登录页面</h1>

<div th:if="${param.error}">
    错误的用户名或密码！
</div>

<form th:action="@{/login}" method="post">
    <div>
        <label>
            <input type="text" name="myUsername" placeholder="用户名" />
        </label>
    </div>

    <div>
        <label>
            <input type="password" name="myPassword" placeholder="密码" />
        </label>
    </div>
    <label>
        <input type="submit" value="登录" />
    </label>
</form>
</body>
</html>